package Hw_01;

public class Staff extends Employee{

        private String duty;

        public Staff() {
        }

        public Staff(String name, String address, String telephone,
                     String email, String office, double wage, String hiredate, String duty) {
            super(name, address, telephone, email, office, wage, hiredate);
            this.duty = duty;
        }

        public String getDuty() {
            return duty;
        }

        public void setDuty(String duty) {
            this.duty = duty;
        }

        public void say(){
            System.out.println("姓名：" + this.getName() + ",地址：" + this.getAddress() + ",电话：" +
                    this.getTelephone() + ",邮箱：" + this.getEmail() + ",办公室：" + this.getOffice()
                    + ",工资：" + this.getWage() + ",受雇日期：" + this.getHiredate() + ",职务称号：" +
                    this.getDuty());
        }

}
